﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Sublimation
{
    public class EnemyUnit1 : EnemyUnit
    {
        protected int NUMBER_OF_FRAMES_TO_PLAY = 8;
        protected const int FRAMES_PER_SECOND = 40;

        public override void setProperties()
        {
            kind = EnemyKind.Enemy1;
            scoreValue = 50;
            Life = 40;
            MaxSpeed = 40f;
            MeleeDamage = 100;
            MeleeAttackDelay = 1000;
        }

        public EnemyUnit1(WorldProperties worldProperties)
            : base(worldProperties) {
        }
        protected override void LoadContent()
        {
            base.LoadContent();
            textureAnimator = new AnimatedSprite.AnimatedTexture(Origin, Rotation, Scale, 1.0f);
            textureAnimator.Load(Game.Content, "Sprites\\enemy1", NUMBER_OF_FRAMES_TO_PLAY, FRAMES_PER_SECOND);
            Scale = 0.5f;
        }
        public override void Kill()
        {
            base.Kill();
            if (Life <= 0) new Animation(worldProperties, this, 0.5f, 4, 10, "Sprites\\enemy1_dying");
        }
    }
}
